#ifndef QTREMBINDS_H
#define QTREMBINDS_H

#include <QtGui/QWidget>

#include "WidgetConfiguration.h"
#include "WidgetBinds.h"

namespace Ui
{
    class QTremBinds;
}

class QTremBinds : public QWidget
{
    Q_OBJECT

public:
    QTremBinds(QWidget *parent = 0);
    ~QTremBinds();

private:
    Ui::QTremBinds *ui;

    WidgetConfiguration *widConfiguration;
    WidgetBinds *widBinds;

    BindList binds_;

    // Put the window in the center of the screen
    void centerWidgetOnScreen (QWidget * widget);

    // Read the autogen.cfg and load the binds in WidgetBinds
    void initializeBinds();

private slots:
    void on_btnAddBind_clicked();
    void on_btnConfig_clicked();
    void on_widConfiguration_accepted();
    void on_widConfiguration_rejected();
    void on_widBinds_back();
};

#endif // QTREMBINDS_H
